package me.ahoukuse.koala.dao;

import me.ahoukuse.koala.po.SharedFiles;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShareDao {
    void insertOne(SharedFiles sharedFiles);

    SharedFiles getSharedById(int id);
    SharedFiles getSharedBySharedCode(String sharedCode);

    List<SharedFiles> getSharedByUserId(int userId);

    void updateSharedBySharedCode(SharedFiles sharedFiles);
}
